<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>      
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
<title>消息推送记录</title>
</head>

<body>
<div class="margin clearfix">
 <div class="" id="Other_Management">
 <div class="search_style">
      <ul class="search_content clearfix">
       <li><label class="l_f">会员名称：</label><input name="" type="text"  class="text_add" style=" width:200px"/></li>
	    <li><label class="l_f">短信标题：</label><input name="" type="text"  class="text_add" style=" width:200px"/></li>
	    <li style="width:100px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
      </ul>
    </div>
 <div class="Store_Introduction">
      
	  <div class="border clearfix">
       <span class="l_f">
        <a href="dxbianji.html"  title="短息推送" id="add_page" class="btn btn-danger"> 短息推送</a>
		<a href="zhanghcz.html"  title="短息充值" id="add_duanx" class="btn btn-warning"> 短息充值</a>
       </span>&nbsp;&nbsp;剩余可用：<b>200</b> 条
            </div>
     <div class="list_style">
     <table class="table table-striped table-bordered table-hover" id="sample-table">
     <thead>
		 <tr>
				<th width="20">序号</th>
				<th width="60">合作关系</th>
				<th width="80">会员名称</th>
				<th width="80">短信标题</th>
                <th width="60">联系电话</th>
				<th width="70">日期</th>               
				<th width="80">状态</th>
			</tr>
		</thead>
	<tbody>
		<tr>
        <td>2</td>
        <td>会员</td>
        <td>花海iatiant</td>
        <td>节日促销</td>
        <td>12345678932</td>
		<td>2016/06</td>
        <td class="td-status"><a class="btn btn-xs btn-info member_add">详&nbsp;&nbsp;情</a>
		<a class="btn btn-xs btn-success radius">已发送</a></td>
        </tr>
       <tr>
       <td>3</td>
        <td>会员</td>
        <td>花海iatiant</td>
        <td>节日促销</td>
        <td>12345678932</td>
		<td>2016/06</td>
        <td class="td-status"><a class="btn btn-xs btn-info member_add">详&nbsp;&nbsp;情</a>
		<a class="btn btn-xs btn-success radius">已发送</a></td>
        </tr>
        </tr>
        <tr>
       <td>4</td>
        <td>会员</td>
        <td>正和</td>
        <td>节日促销</td>
        <td>12345678932</td>
		<td>2016/06</td>
       <td class="td-status"><a  class="btn btn-xs btn-info member_add">详&nbsp;&nbsp;情</a>
		<a class="btn btn-xs btn-success radius">已发送</a></td>
        </tr>
        </tr>
        <tr>
        <td>1</td>
        <td>会员</td>
        <td>张小泉</td>
         <td>节日促销</td>
        <td>12345678932</td>
		<td>2016/06</td>
       <td class="td-status"><a  class="btn btn-xs btn-info member_add">详&nbsp;&nbsp;情</a>
	   <a class="btn btn-xs btn-danger radius">失&nbsp;&nbsp;败</a>
		</td>
		 </tr>
        </tbody>    
     </table>     
     </div>
     </div>
 </div>
</div> 
 </div>
 <div class="add_menber" id="add_menber_style" style="display:none">
 <br/>
<label style="margin-left:50px">短信标题：<input type="text" id="website-title" value="节日促销" style=" width:300px;border:0px"/>
		 </label> <br/>
<label style="margin-left:50px">短信模板：<input type="text" id="website-title" value="节日促销" style=" width:300px;border:0px"/>
		 </label> <br/>
<label style="margin-left:50px">短信内容：<input type="text" id="website-title" value="XXX节日我公司推送了买商品送积分" style=" width:300px;border:0px"/>
		 </label>
</div> 

</body>
</html>
<script>
$('.member_add').on('click', function(){
    layer.open({
        type: 1,
        title: '短信记录',
		maxmin: true, 
		shadeClose: true, //点击遮罩关闭层
        area : ['500px' , '250px'],
        content:$('#add_menber_style'),
		btn:['重新发送','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[id$='']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			  layer.alert('发送成功！',{     
               title: '提示框',				
			icon:1,	
			time:1000	
			  });
			   window.location.href='duanxituis.html';
		  }		  		     				
		}
    });
});
jQuery(function($) {
				var oTable1 = $('#sample-table').dataTable( {
				"aaSorting": [[ 0, "asc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[1,2,3,4,5,6]}// 制定列不参与排序
		] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			});
			

function member_del(obj,id){
	layer.confirm('确认删除，这条信息不再显示',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}

function integration_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#integration_history'),
	})	
		$('#integration_history_list').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	 }]
});
	
	};

function Browse_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#Browse_history'),
	})	
$('#Browse_history_list').dataTable({
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	}]
});	
}


function Order_history(id){
	layer.open({
    type: 1,
	title:'',
	area: [],
	shadeClose: true,
	content: $('#Order_history'),
	});	
		$('#Order_history_list').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
    "bStateSave": true,//状态保存
    "aoColumnDefs": [{
	  "bSortable": false, 
	  "orderable":false, 
	  "aTargets": [0,1]
	 }]
});		
}


</script>
<script type="text/javascript">
 laydate({
    elem: '#start1',
    event: 'focus' 
});
 laydate({
	elem: '#start2',
    event: 'focus' 
});
</script>